package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author:fff
 * @time:2022/4/6
 */
@Data
@TableName(value = "factory")
public class Factory {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String code;
    private String name;
    @TableField("end_time")
    private Date endTime;
    private String cloud;
    private String product;
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("工厂logo")
    @TableField(value = "logo_url", updateStrategy = FieldStrategy.IGNORED)
    private String logoUrl;

    @ApiModelProperty("工厂地址")
    @TableField(value = "address")
    private String address;


    @ApiModelProperty("当前登录人姓名")
    @TableField(exist = false)
    private String currentUserName;


    @ApiModelProperty("当前用户电话号码")
    @TableField(exist = false)
    private String currentMobile;
}
